package com.flower.mapper;

import com.flower.model.entity.PageQuery;
import com.flower.model.entity.Product;
import com.flower.result.PageResult;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@SuppressWarnings("all")
/**
 *@ClassName ProductsMapper
 *@Description TODO
 *@Author @O_o  GW__
 *@Date 2025/6/10 14:57
 *@Version 1.0
 */
@Mapper
public interface ProductsMapper {
    List<Product> getAllProducts();

    Product getProduct(Integer id);

    Page<Product> pageQuery(PageQuery pageQuery);

    List<Product> list();

    void add(Product product);
}
